CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

link_directories(${PROJECT_ROOT}/lib)

include_directories(${COMN_DIR}/include)


include_directories(${FFMPEG_DIR}/include)
link_directories(${FFMPEG_LIBRARY_DIR})

include_directories(${PROJECT_ROOT}/UniMediaCore/UniMediaCore/include)
include_directories(${PROJECT_ROOT}/UniMediaCore/UniMediaSource/include)


include_directories(.)
include_directories(include)
include_directories(src)
include_directories(core)


aux_source_directory(. SOURCES)
aux_source_directory(src SOURCES)
aux_source_directory(core SOURCES)

add_library(FfMediaInfo SHARED ${SOURCES})


target_link_libraries(FfMediaInfo
	debug comnd optimized comn
	UniMediaCore
	${FFMPEG_LIBRARIES}
	${LIB_PLATFORM}
	)

set_target_properties(FfMediaInfo PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(FfMediaInfo PROPERTIES INTERFACE_LINK_LIBRARIES "")

install(TARGETS FfMediaInfo DESTINATION .)